#ifndef WIDGET_BEGIN_H
#define WIDGET_BEGIN_H



#include "players.h"
#include "gui.h"
#include <sstream>
#include <QtGui>
#include <QObject>



class added_player:public QWidget
{

public:

	added_player( player* pl, QWidget* parent = 0, Qt::WindowFlags flags = 0 );

};



class begin_widget:public QWidget
{

	Q_OBJECT

public:

	begin_widget( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	

private:

	QVBoxLayout* layout;
	QLineEdit* load_i;
	QLineEdit* object_i;
	QLineEdit* name_i;
	QComboBox* type_i;
	QPushButton* add_b;
	QPushButton* load_b;
	QPushButton* object_b;
	QPushButton* next_b;
	QString name;
	

private slots:

	void add_player();
	void next();
	void load_map();
	void load_objects();
	void type_changed( const QString& text );

};



#endif